<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  
  <title>mybatis初步使用 | du小站</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="mybatis常用的使用示例">
<meta property="og:type" content="article">
<meta property="og:title" content="mybatis初步使用">
<meta property="og:url" content="https://wenjies.github.io/2017/09/15/mybatis%E5%88%9D%E6%AD%A5%E4%BD%BF%E7%94%A8/index.html">
<meta property="og:site_name" content="du小站">
<meta property="og:description" content="mybatis常用的使用示例">
<meta property="og:locale">
<meta property="article:published_time" content="2017-09-15T01:00:00.000Z">
<meta property="article:modified_time" content="2024-12-02T01:56:44.343Z">
<meta property="article:author" content="杰">
<meta property="article:tag" content="mybatis">
<meta name="twitter:card" content="summary">
  
    <link rel="alternate" href="/atom.xml" title="du小站" type="application/atom+xml">
  
  
    <link rel="shortcut icon" href="/favicon.png">
  
  
  
<link rel="stylesheet" href="/css/style.css">

  
    
<link rel="stylesheet" href="/fancybox/jquery.fancybox.min.css">

  
  
<meta name="generator" content="Hexo 7.3.0"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">du小站</a>
      </h1>
      
        <h2 id="subtitle-wrap">
          <a href="/" id="subtitle">我们笑着说再见，却深知再见遥遥无期。</a>
        </h2>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"><span class="fa fa-bars"></span></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
        
          <a class="nav-icon" href="/atom.xml" title="RSS Feed"><span class="fa fa-rss"></span></a>
        
        <a class="nav-icon nav-search-btn" title="Suche"><span class="fa fa-search"></span></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Suche"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://wenjies.github.io"></form>
      </div>
    </div>
  </div>
</header>

      <div class="outer">
        <section id="main"><article id="post-mybatis初步使用" class="h-entry article article-type-post" itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
  <div class="article-meta">
    <a href="/2017/09/15/mybatis%E5%88%9D%E6%AD%A5%E4%BD%BF%E7%94%A8/" class="article-date">
  <time class="dt-published" datetime="2017-09-15T01:00:00.000Z" itemprop="datePublished">2017-09-15</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Mybatis/">Mybatis</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="p-name article-title" itemprop="headline name">
      mybatis初步使用
    </h1>
  

      </header>
    
    <div class="e-content article-entry" itemprop="articleBody">
      
        <h2 id="mybatis映射"><a href="#mybatis映射" class="headerlink" title="mybatis映射"></a>mybatis映射</h2><p><strong><code>1.resultMap的形式</code></strong></p>
<pre><code>&lt;resultMap id=&quot;userVo&quot; type=&quot;com.base.system.entity.UserVo&quot;&gt;
    &lt;id column=&quot;uId&quot; jdbcType=&quot;BIGINT&quot; property=&quot;uId&quot; /&gt;
    &lt;result column=&quot;uName&quot; jdbcType=&quot;VARCHAR&quot; property=&quot;uName&quot; /&gt;
    &lt;association property=&quot;addr&quot; column=&quot;aId&quot; javaType=&quot;com.base.system.entity.Addr&quot;&gt;  
        &lt;id property=&quot;aId&quot; column=&quot;aId&quot;/&gt;  
        &lt;result property=&quot;addr&quot; column=&quot;addr&quot;/&gt;  
    &lt;/association&gt;  
    &lt;collection property=&quot;roleList&quot; ofType=&quot;com.base.system.entity.RoleVo&quot; column=&quot;rId&quot;&gt;
        &lt;id column=&quot;rId&quot; property=&quot;rId&quot; jdbcType=&quot;BIGINT&quot; /&gt;
        &lt;result column=&quot;rName&quot; property=&quot;rName&quot; jdbcType=&quot;VARCHAR&quot; /&gt;
        &lt;collection property=&quot;menuList&quot; ofType=&quot;com.base.system.entity.MenuVo&quot; column=&quot;mId&quot;&gt;
        	&lt;id column=&quot;mId&quot; property=&quot;mId&quot; jdbcType=&quot;BIGINT&quot; /&gt;
            &lt;result column=&quot;mName&quot; property=&quot;mName&quot; jdbcType=&quot;VARCHAR&quot; /&gt;
     	&lt;/collection&gt;
    &lt;/collection&gt;
&lt;/resultMap&gt;

注意： column=&quot;aId&quot;  column=&quot;rId&quot;  column=&quot;mId&quot; 不写也可以。
      association、collection 都有select属性可以此时设置懒加载才有意义。
</code></pre>
<p><strong><code>2.foreach常用的形式</code></strong></p>
<pre><code>&lt;insert id=&quot;insertbatch&quot; &gt;
    insert into t_role_menu (role_id, menu_id) VALUES
 	&lt;foreach collection=&quot;menuIds&quot; item=&quot;menuId&quot; open=&quot;&quot; close=&quot;&quot; separator=&quot;,&quot;&gt;  
    	(#&#123;roleId,jdbcType=BIGINT&#125;, #&#123;menuId,jdbcType=BIGINT&#125;)
    &lt;/foreach&gt;
&lt;/insert&gt;

&lt;delete id=&quot;deleteRole&quot;&gt;
    DELETE FROM t_role_menu WHERE role_id IN 
    &lt;foreach collection=&quot;roleIds&quot; item=&quot;roleId&quot; open=&quot;(&quot; close=&quot;)&quot; separator=&quot;,&quot;&gt;  
    	#&#123;roleId,jdbcType=BIGINT&#125;
    &lt;/foreach&gt;
&lt;/delete&gt;
</code></pre>
<p><strong><code>3.调用存储过程</code></strong></p>
<pre><code>&lt;select id=&quot;ckm&quot; resultMap=&quot;BaseResultMap&quot; statementType=&quot;CALLABLE&quot;&gt;
    &#123;CALL ckm(#&#123;time,mode=IN,jdbcType=INTEGER&#125;) &#125;
&lt;/select&gt;
</code></pre>
<p><strong><code>4.使用注意事项</code></strong></p>
<ol>
<li>若单个参数不为 map 需要在标签 parameterType 声明参数类型。</li>
<li>多个参数必须使用 map 或 参数注解。</li>
</ol>
<h4 id="mybatis常用标签"><a href="#mybatis常用标签" class="headerlink" title="mybatis常用标签"></a>mybatis常用标签</h4><h6 id="1、trim-去掉-指定位置的字符"><a href="#1、trim-去掉-指定位置的字符" class="headerlink" title="1、trim 去掉 指定位置的字符"></a>1、trim 去掉 指定位置的字符</h6><pre><code>&lt;delete&gt;
    DELETE FROM xx WHERE
    &lt;trim prefixOverrides=&quot;AND | OR&quot;&gt;
        &lt;if test=&quot;id != null&quot; &gt; AND xx.id = #&#123;id&#125; &lt;/if&gt;
        &lt;if test=&quot;name != null&quot; &gt; AND xx.name = #&#123;name&#125; &lt;/if&gt;
    &lt;/trim&gt;
&lt;/delete&gt;
</code></pre>
<h6 id="2、set-会去掉最后一个"><a href="#2、set-会去掉最后一个" class="headerlink" title="2、set 会去掉最后一个,"></a>2、set 会去掉最后一个,</h6><pre><code>&lt;update&gt;
      UPDATE xxx A
      &lt;set&gt;
          &lt;if test=&quot;nums != null&quot;&gt; A.NUMS = #&#123;nums&#125;, &lt;/if&gt;
          &lt;if test=&quot;state != null&quot;&gt; A.STATE = #&#123;state&#125;, &lt;/if&gt;
      &lt;/set&gt;
      WHERE A.id = #&#123;id&#125;
      &lt;if test=&quot;sid != null&quot;&gt; AND A.SID = #&#123;sid&#125;&lt;/if&gt;
&lt;/update&gt;
</code></pre>
<h6 id="3、where-会去掉第一个and或or组成正确的where语句"><a href="#3、where-会去掉第一个and或or组成正确的where语句" class="headerlink" title="3、where 会去掉第一个and或or组成正确的where语句"></a>3、where 会去掉第一个and或or组成正确的where语句</h6><pre><code>&lt;select&gt;
    SELECT * FROM xx A
    &lt;where&gt;
        &lt;if test=&quot;sid != null&quot;&gt; AND A.ID = #&#123;sid&#125;&lt;/if&gt;
        &lt;if test=&quot;bid != null&quot;&gt; AND A.BID = #&#123;bid&#125;&lt;/if&gt;
        &lt;if test=&quot;state != null&quot;&gt; AND A.STATE = #&#123;state&#125;&lt;/if&gt;
    &lt;/where&gt;
    ORDER BY A.SORT ASC, A.AA02 DESC
&lt;/select&gt;
</code></pre>
<h6 id="4、foreach-循环遍历集合数组通常用于in-ids集合、item迭代项"><a href="#4、foreach-循环遍历集合数组通常用于in-ids集合、item迭代项" class="headerlink" title="4、foreach  循环遍历集合数组通常用于in ids集合、item迭代项"></a>4、foreach  循环遍历集合数组通常用于in ids集合、item迭代项</h6><pre><code>  &lt;update &gt;
    update xx set STATE = #&#123;state&#125; where ID in 
    &lt;foreach item=&quot;item&quot; index=&quot;index&quot; collection=&quot;ids&quot; open=&quot;(&quot; separator=&quot;,&quot; close=&quot;)&quot;&gt;  
        #&#123;item&#125;  
    &lt;/foreach&gt; 
  &lt;/update&gt;
</code></pre>
<h6 id="5、choose-when-otherwise-相当于if-else"><a href="#5、choose-when-otherwise-相当于if-else" class="headerlink" title="5、choose when otherwise 相当于if.. else.."></a>5、choose when otherwise 相当于if.. else..</h6><pre><code>&lt;select&gt;
    &lt;choose&gt;
        &lt;when test=&quot;state != 1&quot;&gt;
            SELECT * from t
        &lt;/when&gt;
        &lt;otherwise&gt;
            SELECT * from t2
        &lt;/otherwise&gt;
    &lt;/choose&gt;
&lt;/select&gt;
</code></pre>
<h6 id="6、if-判断，true则进入"><a href="#6、if-判断，true则进入" class="headerlink" title="6、if  判断，true则进入"></a>6、if  判断，true则进入</h6><pre><code>&lt;if test=&quot;aId != null and aId != &#39;&#39;&quot;&gt;
    AND a.ID = #&#123;aId&#125;
&lt;/if&gt;
&lt;if test=&quot;aId==&#39;2&#39;.toString()&quot;&gt;..&lt;/if&gt; 或 &lt;if test=&#39;aId==&quot;2&quot;&#39;&gt;..&lt;/if&gt;
总之 test里面的判断字符串相等时需要使用双引号&quot;&quot;,如果使用单引号就加.toString()
</code></pre>
<h6 id="7、CDATA-转义块里的特殊字符"><a href="#7、CDATA-转义块里的特殊字符" class="headerlink" title="7、CDATA  转义块里的特殊字符"></a>7、CDATA  转义块里的特殊字符</h6><pre><code>  &lt;![CDATA[ code ]]&gt;
</code></pre>
<h6 id="8、resultMap中collection连接查询结果集处理-不需要可以处理关系只要column不重复。collection中包含所有‘多’关系即可"><a href="#8、resultMap中collection连接查询结果集处理-不需要可以处理关系只要column不重复。collection中包含所有‘多’关系即可" class="headerlink" title="8、resultMap中collection连接查询结果集处理.不需要可以处理关系只要column不重复。collection中包含所有‘多’关系即可"></a>8、resultMap中collection连接查询结果集处理.不需要可以处理关系只要column不重复。collection中包含所有‘多’关系即可</h6><pre><code>&lt;resultMap type=&quot;XXX&quot; id=&quot;parentMap&quot;&gt;
      &lt;result column=&quot;NAME&quot; property=&quot;name&quot; /&gt;
      &lt;result column=&quot;TYPE&quot; property=&quot;type&quot; /&gt;
      &lt;result column=&quot;LOGINNAME&quot; property=&quot;loginname&quot; /&gt;
      &lt;collection property=&quot;xxxList&quot; ofType=&quot;xx&quot; &gt;
          &lt;result column=&quot;TYPENAME1&quot; property=&quot;typename1&quot; /&gt;
          &lt;result column=&quot;TYPENAME2&quot; property=&quot;typename2&quot; /&gt;
          &lt;result column=&quot;TYPENAME3&quot; property=&quot;typename3&quot; /&gt;
      &lt;/collection&gt;
&lt;/resultMap&gt;
]()
</code></pre>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://wenjies.github.io/2017/09/15/mybatis%E5%88%9D%E6%AD%A5%E4%BD%BF%E7%94%A8/" data-id="cm3zb0p5u0000kku675p1155d" data-title="mybatis初步使用" class="article-share-link"><span class="fa fa-share">Teilen</span></a>
      
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/mybatis/" rel="tag">mybatis</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2017/09/16/jsonp%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Neuer</strong>
      <div class="article-nav-title">
        
          jsonp跨域请求
        
      </div>
    </a>
  
  
    <a href="/2017/09/14/ControllerAdvice/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Älter</strong>
      <div class="article-nav-title">spring mvc advice</div>
    </a>
  
</nav>

  
</article>


</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Kategorien</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/AJAX/">AJAX</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/JAVA/">JAVA</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MQ/">MQ</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Mybatis/">Mybatis</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Redis/">Redis</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Spring/">Spring</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/zookeeper/">zookeeper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/">分布式事务</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%B7%A5%E5%85%B7/">工具</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%95%B0%E6%8D%AE%E5%BA%93/">数据库</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%BB%8F%E9%AA%8C/">经验</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tags</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/aop/" rel="tag">aop</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/bean/" rel="tag">bean</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/" rel="tag">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/java/" rel="tag">java</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/js/" rel="tag">js</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/micrometer/" rel="tag">micrometer</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mvc/" rel="tag">mvc</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mybatis/" rel="tag">mybatis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/mysql/" rel="tag">mysql</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/redis/" rel="tag">redis</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/rocketmq/" rel="tag">rocketmq</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/spring/" rel="tag">spring</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/zookeeper/" rel="tag">zookeeper</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E4%BA%8B%E5%8A%A1/" rel="tag">事务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/" rel="tag">分布式事务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/" rel="tag">单元测试</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" rel="tag">基础知识</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1/" rel="tag">定时任务</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%89%A9%E5%B1%95/" rel="tag">扩展</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E6%95%B4%E5%90%88/" rel="tag">整合</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E9%9D%A2%E8%AF%95/" rel="tag">面试</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Tag Cloud</h3>
    <div class="widget tagcloud">
      <a href="/tags/aop/" style="font-size: 10px;">aop</a> <a href="/tags/bean/" style="font-size: 10px;">bean</a> <a href="/tags/hexo/" style="font-size: 10px;">hexo</a> <a href="/tags/java/" style="font-size: 10px;">java</a> <a href="/tags/js/" style="font-size: 10px;">js</a> <a href="/tags/micrometer/" style="font-size: 10px;">micrometer</a> <a href="/tags/mvc/" style="font-size: 13.33px;">mvc</a> <a href="/tags/mybatis/" style="font-size: 10px;">mybatis</a> <a href="/tags/mysql/" style="font-size: 20px;">mysql</a> <a href="/tags/redis/" style="font-size: 10px;">redis</a> <a href="/tags/rocketmq/" style="font-size: 10px;">rocketmq</a> <a href="/tags/spring/" style="font-size: 10px;">spring</a> <a href="/tags/zookeeper/" style="font-size: 10px;">zookeeper</a> <a href="/tags/%E4%BA%8B%E5%8A%A1/" style="font-size: 10px;">事务</a> <a href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E4%BA%8B%E5%8A%A1/" style="font-size: 10px;">分布式事务</a> <a href="/tags/%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/" style="font-size: 10px;">单元测试</a> <a href="/tags/%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86/" style="font-size: 16.67px;">基础知识</a> <a href="/tags/%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1/" style="font-size: 10px;">定时任务</a> <a href="/tags/%E6%89%A9%E5%B1%95/" style="font-size: 10px;">扩展</a> <a href="/tags/%E6%95%B4%E5%90%88/" style="font-size: 10px;">整合</a> <a href="/tags/%E9%9D%A2%E8%AF%95/" style="font-size: 10px;">面试</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archiv</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2025/01/">January 2025</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/11/">November 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/10/">October 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/09/">September 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/07/">July 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2017/05/">May 2017</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/12/">December 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/11/">November 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/10/">October 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/08/">August 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/05/">May 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/03/">March 2016</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2016/02/">February 2016</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">letzter Beitrag</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2025/01/10/spring%20boot3%E6%95%B4%E5%90%88ELK%E5%AE%9E%E7%8E%B0%E6%97%A5%E5%BF%97%E6%90%9C%E7%B4%A2/">spring boot3整合ELK实现日志搜索</a>
          </li>
        
          <li>
            <a href="/2025/01/10/spring%20boot3%E6%95%B4%E5%90%88%E9%93%BE%E8%B7%AF%E8%BF%BD%E8%B8%AA/">spring boot3整合链路追踪</a>
          </li>
        
          <li>
            <a href="/2024/11/27/hexo%E4%BD%BF%E7%94%A8/">hexo使用</a>
          </li>
        
          <li>
            <a href="/2017/10/17/spring%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95/">spring单元测试</a>
          </li>
        
          <li>
            <a href="/2017/09/16/jsonp%E8%B7%A8%E5%9F%9F%E8%AF%B7%E6%B1%82/">jsonp跨域请求</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      
      &copy; 2025 杰<br>
      <a href="https://beian.miit.gov.cn/" target="_blank">蜀ICP备19041392号-1</a>
    </div>
  </div>
</footer>

    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    


<script src="/js/jquery-3.6.4.min.js"></script>



  
<script src="/fancybox/jquery.fancybox.min.js"></script>




<script src="/js/script.js"></script>





  </div>
</body>
</html>